import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';

// primeng ui
import {
  ToolbarModule,
  ButtonModule,     
  SelectButtonModule,
  PaginatorModule,
} from 'primeng/primeng';

import { DataViewModule } from 'primeng/dataview';
import { PanelModule } from 'primeng/panel';
import { InputTextModule } from 'primeng/inputtext';

import { AppComponent } from './app.component';
import { HomeComponent } from './home/home.component';
import { CrhNavbarComponent } from './crh-navbar/crh-navbar.component';

// service 
import { CompanyService } from './company.service'

@NgModule({
  declarations: [
    AppComponent,
    HomeComponent,
    CrhNavbarComponent
  ],
  imports: [
    BrowserModule,
    BrowserAnimationsModule,
    AppRoutingModule,
    FormsModule,
    HttpClientModule,
    /* primeng module */
    ToolbarModule,
    ButtonModule,
    SelectButtonModule,
    PaginatorModule,
    DataViewModule,
    PanelModule,
    InputTextModule
  ],
  providers: [CompanyService],
  bootstrap: [AppComponent]
})
export class AppModule { }
